import File from './file/file.js'
export default {
	mixins: [File],
	props: {
		value: String,
		disabled: {
			type: Boolean,
			default: false
		},
		width: { // 宽度 (需带单位,支持格式: '100%', '300px', '300rpx')
			type: String,
			default: "70px"
		},
		height: { // 高度 (需带单位,支持格式: '100%', '300px', '300rpx')
			type: String,
			default: "70px"
		},
	},
	data() {
		return {
			val: '',
		}
	},
	watch: {
		value: function(val) {
			this.val = val;
		},
		val: function(v) {
			this.$emit('input', v)
		}
	},
	mounted() {
		this.val = this.value;
	}
}
